<?php
require("frmCookie.php");

$id = $_GET['id'];

$mySQL = "SELECT * FROM fotosxmodelo WHERE idFoto = $id";
$result = readSQL($mySQL);
foreach($result as $value)
{
	$content = $value['foto'];
}

header('Content-type: image/jpg');
echo $content;

?>